#ifndef PUBLICSWIDGET_H
#define PUBLICSWIDGET_H

#include <QWidget>
#include <QtSql>
#include <QMessageBox>


namespace Ui {
    class PublicsWidget;
}

class PublicsWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PublicsWidget(QWidget *parent = 0);
    ~PublicsWidget();
    QSqlDatabase db;
    QString RefNumber;
    void LoadData();
    void SaveData();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::PublicsWidget *ui;
    QSqlQueryModel *model;
private slots:
    void on_cmdEditToDo_clicked();
    void on_cbdAddToDo_clicked();
};

#endif // PUBLICSWIDGET_H
